<%= form_for [:admin, @user_scratch_card_award], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title">
      <% if @user_scratch_card_award.new_record? %>
      添加用户中奖
      <% else %>
      修改用户中奖
      <% end %>
    </h3>
    <div class="row">
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">中奖用户</label>
          <div class="form-control-plaintext"><%= @user_scratch_card_award.user.name %></div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">中奖用户手机</label>
          <div class="form-control-plaintext"><%= @user_scratch_card_award.user.phone %></div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">奖品</label>
          <div class="form-control-plaintext"><%= @user_scratch_card_award.scratch_card_award.name %></div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <div class="form-label">是否领奖</div>
          <div class="custom-controls-stacked">
            <label class="custom-control custom-radio custom-control-inline">
              <%= f.radio_button :received, true, { class: "custom-control-input" } %>
              <span class="custom-control-label">已领奖</span>
            </label>
            <label class="custom-control custom-radio custom-control-inline">
              <%= f.radio_button :received, false, { class: "custom-control-input" } %>
              <span class="custom-control-label">未领奖</span>
            </label>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="card-footer text-right">
    <button type="submit" class="btn btn-primary">保 存</button>
  </div>
<% end %>